//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IMesh.h>
///	@path	~/src/graphics/
///	@date	2008/12/28
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IVertexBuffer.h"
#include "graphics/IVertexIndex.h"
#include "graphics/IVertexLayout.h"
#include "graphics/IGeometry.h"

namespace xeres {

	/*! 
		\class	IMesh
		\brief
	*/
	class IMesh : public IGeometry
	{
	public:

		/// \ctor
		IMesh( void );

		/// \dtor
		virtual ~IMesh( void );

		DECL_IOBJECT_INTERFACE( IMesh , IGeometry );

	public:

		///	\name Mesh Interface
		//@{

		/// \brief	Get geometry type.
		virtual TopologyType GetType( void ) = 0;

		/// \brief	Get vertex slot count.
		virtual size_t GetSlotCount( void ) = 0;

		/// \brief	Get vertex data inside mesh.
		virtual RefWeak<IVertexBuffer> GetVertex( size_t slot ) = 0;

		/// \brief	Get vertex index data.
		virtual RefWeak<IVertexIndex> GetIndex( void ) = 0;

		//@}
	};
	
} // namespace xeres
